/*
 * @Author: szx
 * @Date: 2022-03-29 13:45:53
 * @LastEditTime: 2022-03-29 13:51:06
 * @Description:
 * @FilePath: \leetcode\剑指offer\64\64.js
 */
/**
 * @param {number} n
 * @return {number}
 */
var sumNums = function (n) {
    n && (n += sumNums(n - 1));
    return n;
};
